<?php

class Eleven_Form_Picture_Cate extends Zend_Form 
{ 
    public function init()
    {
        $this->addElementPrefixPath(
            'Eleven_Validate',
            APPLICATION_PATH . '/models/validate/',
            'validate'
        );
        
        $this->setDisableLoadDefaultDecorators(true);
        $this->setDecorators(array(
            array(
                'ViewScript',
                array('viewScript'=>'catepic/_cate.phtml')
            ),
            'Form'
        ));
        
        $this->setName('createCate');
                
        $desc1 = new Zend_Form_Element_Text('title',array(
			'required'		=> true));
        $desc1->addValidator('NotEmpty');
        $desc1->setDecorators(array(
            'ViewHelper',
            'Errors',
        ));
        $desc1->setAttrib('class', 'pic_desc');
                
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('')
                ->setAttrib('class','pic_submit');
        
        $this->addElements(array($desc1, $submit));
    } 
} 
